package edu.hubu.shop9.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import edu.hubu.shop9.entity.Employee;
import edu.hubu.shop9.vo.EmployeeVo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author waxijiang
 * @since 2021-07-26
 */
public interface IEmployeeService extends IService<Employee> {
    IPage<EmployeeVo> selectByQuery(QueryWrapper<Employee> queryWrapper, Page<EmployeeVo> page);

    Boolean checkUsername(String username);

    Employee checkLogin(String username, String password);

    boolean batchImport(String fileName, MultipartFile file) throws IOException;
}
